package org.gameg.model.biz;

import com.baomidou.mybatisplus.annotations.TableField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import top.ibase4j.core.base.BaseModel;

import java.util.Date;

public class Token extends BaseModel {

    @ApiModelProperty(value = "授权码")
    @TableField("token")
    private String token;
    @ApiModelProperty(value = "生成时间")
    @TableField("create_date")
    private Date createDate;
    @ApiModelProperty(value = "状态：0-未激活；1-激活；2-过期；3-拉黑")
    @TableField("status")
    private Integer status;
    @ApiModelProperty(value = "激活时间")
    @TableField("activate_date")
    private Date activateDate;
    @ApiModelProperty(value = "到期时间")
    @TableField("end_date")
    private Date endDate;
    @ApiModelProperty(value = "手机序列号")
    @TableField("phone_number")
    private String phoneNumber;
    @ApiModelProperty(value = "手机型号")
    @TableField("phone_type")
    private String phoneType;
    @ApiModelProperty(value = "平台用户id")
    @TableField("user_id")
    private Long userId;
    @ApiModelProperty(value = "有效期")
    @TableField("validity")
    private Integer validity;
    @ApiModelProperty(value = "返回给用户的token值")
    @TableField("player_token")
    private String playerToken;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String phone;
    @TableField("block_time")
    private Date blockTime;
    @TableField("white_time")
    private Date whiteTime;
    @TableField(exist = false)
    private Integer tokenSize;
    @TableField("unit")
    private String unit;

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getTokenSize() {
        return tokenSize;
    }

    public void setTokenSize(Integer tokenSize) {
        this.tokenSize = tokenSize;
    }

    public Date getBlockTime() {
        return blockTime;
    }

    public void setBlockTime(Date blockTime) {
        this.blockTime = blockTime;
    }

    public Date getWhiteTime() {
        return whiteTime;
    }

    public void setWhiteTime(Date whiteTime) {
        this.whiteTime = whiteTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getValidity() {
        return validity;
    }

    public void setValidity(Integer validity) {
        this.validity = validity;
    }

    public String getPlayerToken() {
        return playerToken;
    }

    public void setPlayerToken(String playerToken) {
        this.playerToken = playerToken;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getActivateDate() {
        return activateDate;
    }

    public void setActivateDate(Date activateDate) {
        this.activateDate = activateDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneType() {
        return phoneType;
    }

    public void setPhoneType(String phoneType) {
        this.phoneType = phoneType;
    }
}
